- Quiz#1 scheduled for Thursday September 25 (Up to and including today's material)

"Don't complain just work harder"

- Exception Handling

Example#1: Product codes
I will get product codes from the user ==> The code will have 5 characters: 4 digits + 1 character
First 4 digits --> Area information
The last character --> City code

if area code >= 2000 and city code = 'B' ==> The product is banned

Objective: count the number of valid and banned codes

- Exception propagation: 
Example#2: Exception Propagation
getMessage --> gets your the error message
printStackTrace --> prints the stack trace

- Checked vs. unchecked exception
unchecked exceptions are the exception classes that are derived RuntimeException ---> Require
no try-catch and no throws clause in the header of the problematic method

Checked exception: you have to either handle the exception (try-catch) or use an augmented header
with the throws clause

- Create own Exception class: 
Example#3: Creating Exception

80% of the skills needed to complete the job --> 20% of the information (Pareto principle)

Atomic Habits
1^365 = 1
1.01^365 = 37



















